<template>
  <h3>子组件2</h3>
  <button @click="emit">传递mitt</button>
</template>
  
  <script setup>
  import emitter from '../utils/emitter'

  function emit () {
    emitter.emit('son-get-data', '123')
  }
  </script>
  
  <style>
</style>